<template>
  <div>
    <img alt="Vue logo" src="./assets/logo.png">
    <!-- <HelloWorld msg="Welcome to Your Vue.js App"/> -->
    <el-input v-model="input" placeholder="Please input" @click="showHandle" />
    <el-dialog width="90%" v-model="visible" title="Shipping address">
        <codeEditor />
      <template #footer>
        <span class="dialog-footer">
          <el-button @click="visible = false">Cancel</el-button>
          <el-button type="primary" @click="visible = false">
            Confirm
          </el-button>
        </span>
      </template>
    </el-dialog>
  </div>
</template>

<script >
import { defineComponent, ref } from "vue";
import codeEditor from "./codeEditor.vue";

export default defineComponent({
  components: { codeEditor },
  setup() {
    const input = ref("");
    const visible = ref(false);
    const showHandle = () => {
      visible.value = true;
    };
    return {
      input,
      visible,
      showHandle,
    };
  },
});
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
